package main

import (
    "fmt"
)

func main(){
    // var arr = [10] int {1,2,3,4,0,9,7,8,6,5}
    arr := []int {1,2,3,4,0,9,7,8,6,5}
    Bubblesort(arr)
    Myprintf(arr)
}


func Bubblesort(arr []int) {
    for i:=0; i<len(arr)-1; i++ {
        for j:=i+1; j<len(arr); j++ {
            if arr[i] > arr[j] {
                arr[i], arr[j] = arr[j], arr[i]
            }
        }
    }
}


func Myprintf(arr []int) {
    for i:=0; i<len(arr); i++ {
        fmt.Printf("%d", arr[i])
    }
    fmt.Println()
}



